<?php
require_once($_SERVER['DOCUMENT_ROOT'] . "/public/BaseCms.php");

/**
 * 反馈
 * Class FeedBack
 */
class FeedBack extends BaseCms
{
    private $tb_name = "feedback";

    function __construct()
    {
        parent::__construct($this->tb_name);
    }

    /**
     * 根据类型获取反馈信息
     * @param $type_id 类别编号
     * @return array|mixed
     */
    function loadByType($type_id)
    {
        $condition = ["foreign_id" => $type_id];
        $orderBy = ["created_date" => "desc"];
        return $this->findList($condition, $orderBy);
    }
}